import Mock from 'mockjs'
let notices = require('./city.json')

let notice = function (option) {
    let info = JSON.parse(option.body)
    return {
      data: notices
    }
  }
Mock.mock('/mock/city', 'get', notice)
let indexs = require('./index.json')

let index = function (option) {
    let info = JSON.parse(option.body)
    return {
      data: indexs
    }
  }
Mock.mock('/mock/index', 'get', index)
let details = require('./detail.json')

let detail = function (option) {
    let info = JSON.parse(option.body)
    console.log(option);
    console.log(details);
    return {
      data: details
    }
  }
Mock.mock('/mock/detail', 'get', detail)
  